class AddColumnToTables < ActiveRecord::Migration
  def change
    add_column :news,:on_index,:integer,:default => 0,:comment => '是否上首页(0:不上,1:上)'
    add_column :news,:ordinal,:integer,:comment => '首页显示顺序'
    add_column :sptitles,:on_index,:integer,:default => 0,:comment => '是否上首页(0:不上,1:上)'
    add_column :sptitles,:ordinal,:integer,:comment => '首页显示顺序'
    add_column :notifies,:on_index,:integer,:default => 0,:comment => '是否上首页(0:不上,1:上)'
    add_column :notifies,:ordinal,:integer,:comment => '首页显示顺序'
    add_column :reports,:on_index,:integer,:default => 0,:comment => '是否上首页(0:不上,1:上)'
    add_column :reports,:ordinal,:integer,:comment => '首页显示顺序'
  end
end
